<script setup type="module">

import {reactive} from "vue";

let test = reactive({
  num: 0
})
let incr = () => {
  test.num++
}
let decr = () => {
  test.num--
}
</script>
<template>
  <div>
    <input type="button" value="+" @click="incr">
    {{ test.num }}
    <input type="button" value="-" @click="decr">
  </div>
</template>
<style scoped>

</style>